<template>
	<view class="">

		<view class="font">
			<!-- <view class="Basics Basicsred ">
				<view class="louis-center">
					Flex布局
				</view>
			</view> -->
			<!-- louis-center -->
			<view style="padding: 10rpx 0rpx;" class="Basics  louis-center Basicsrblue">
				<view class="louis-center ">
					<text>class="louis-absolute"</text>
				</view>
			</view>
			<view style="padding: 10rpx 0rpx;" class="louis-font-center Basics Basicsred">

				<view class="">
					单位可为px或rpx,%为百分比
				</view>

			</view>
			<view class="Basics ">
				<view class="louis-space-between">
					<view class="louis-felx-1 ">
						<view class="louis-bg-P louis-fixed colorblock louis-wh-50">
louis-fixed
						</view>
					</view>
					<view>
						class="louis-fixed
					</view>
				</view>
			</view>

		<!-- 	<view style="padding: 10rpx 0rpx;" class="Basics  louis-center Basicsrblue">
				<view class="louis-center ">
					<text>class="louis-absolute-方向-{size}"</text>
				</view>
			</view>
			<view :key="Basicsclass" v-for="(Basicsclass,i) in maglist" class="Basics louis-relative">
				<view class="louis-space-between">
					<view class="louis-felx-1 louis-relative">
						<view v-for="(item,index) in mincolorlist" :key="index" :class="['louis-bg-'+item.color,Basicsclass]" class="colorblock louis-w-270rpx louis-font-center">
		               {{Basicsclass}}
						</view>
					</view>
					<view>
						{{Basicsclass}}
					</view>
				</view>
			</view> -->
            
			

		</view>
         <view style="padding: 10rpx 0rpx;" class="louis-font-center Basics Basicsred">
            
            	<view class="">
            		Vue可使用组件的方式实现自定义方向定位
            
            	</view>
            	 <louis-view p="10rpx">
			
		</louis-view>
            	<view class="">
            		注:louis-view标签必须加上 position="fixed"
            	</view>
            
            
            
            </view>
            
            <view style="padding: 10rpx 0rpx;" class="louis-font-center Basics Basicsrblue">
            	<view class="">
            		<view class="">
            			<text>{{louisview}}</text>
            		</view>
            	</view>
            </view>
         <view class="Basics ">
         	<view class="louis-space-between">
         		<view class="louis-felx-1">
         
         			<louis-view position="fixed" 
					 bottom="10rpx" >
         			<view class="louis-bg-P colorblock">
         			</view>
         
         			</louis-view>
         		</view>
         		<view>
         			louis-view bottom="10rpx"
         		</view>
         	</view>
         </view>
         
         <view class="Basics ">
         	<view class="louis-space-between">
         		<view class="louis-felx-1">
         
         			<louis-view  position="fixed" 
					 top="900rpx" >
         			<view class="louis-bg-P colorblock">
         			</view>
         
         			</louis-view>
         		</view>
         		<view>
         			louis-view top="900rpx"
         		</view>
         	</view>
         </view>
         
         
         
         
         
         <view class="Basics ">
         	<view class="louis-space-between">
         		<view class="louis-felx-1">
         
         			<louis-view position="fixed"  left="200rpx"  >
         				<view class="louis-bg-P colorblock">
         				</view>
         
         			</louis-view>
         		</view>
         		<view>
         			louis-view left="200rpx"
         		</view>
         	</view>
         </view>
         
         <view class="Basics ">
         	<view class="louis-space-between">
         		<view class="louis-felx-1">
         
         			<louis-view position="fixed"  right="500rpx"  >
         				<view class="louis-bg-P colorblock">
         				</view>
         
         			</louis-view>
         		</view>
         		<view>
         			louis-view right="500rpx"
         		</view>
         	</view>
         </view>
         
         
         <view class="Basics ">
         	<view class="louis-space-between">
         		<view class="louis-felx-1">
         
         			<louis-view position="fixed"   left="10rpx" top="200rpx"  >
         
         				<view class="louis-bg-P colorblock">
         				</view>
         			</louis-view>
         		</view>
         		<view>
         			<view class="">
         				louis-view left="10rpx" top="200rpx"
         			</view>
         
         
         		</view>
         	</view>
         </view>
		 
		 
	<view class="Basics ">
	
	
	
	
		<louis-view position="relative"  style="margin: 10rpx 20rpx;" class="louis-radius-10rpx" color='#d9dde0'>
	
			<view class="louis-padding-10rpx">
				在main.js全局引入
			</view>
			
			<view class="louis-padding-10rpx">
				import louisView from './louis-ui/components/louis-view/louis-view.vue'
									
			</view>
			<view class="louis-padding-10rpx">
				Vue.component('louis-view', louisView)
			</view>
		</louis-view>
	
	
	</view>
         



		 <louis-view p="20rpx">
			
		</louis-view>
		
	</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				louisview: "<louis-view  position='fixed' top='10rpx'></louis-view>",
				maglist: [
					"louis-fixed-t-900",
					"louis-fixed-t-980rpx",
					"louis-fixed-t-0px",
					"louis-fixed-l-100rpx",
					"louis-fixed-r-100rpx",
					"louis-fixed-b-80rpx",
					"louis-fixed-t--100rpx",
				],
				Abbreviationlist: [
					"louis-l-50rpx",
					"louis-r-450rpx",
					"louis-t-400rpx",
					"louis-b-10rpx",
				],
				mincolorlist: [

					{
						color: "P",
						name: "普通",
						hex: "#409EFF"
					},
					// {
					// 	color: "S",
					// 	name: "成功",
					// 	hex: "#67C23A"
					// },
					// {
					// 	color: "D",
					// 	name: "危险",
					// 	hex: "#F56C6C"
					// }

				],
			};
		},
		mounted() {

		},
		methods: {

		}
	}
</script>

<style scoped lang="less">
	.Fonttextbox {
		// height: 4000rpx;
		overflow: hidden;

	}

	.Fonttext {
		// -webkit-text-stroke: 1px #6893a0;
		position: absolute;
		z-index: 200;
		color: rgba(255, 255, 255, 0.7);
		width: 100%;
		height: 100%;
		top: 42rpx;
		right: 0rpx;
		width: 200rpx;
		font-size: 45rpx;
		// transform:skewX(23deg);
		// color: #db79a5;
		font-weight: bold;
		opacity: 0.8;
	}

	.Basics {
		color: #FFF;
		font-size: 25rpx;
		margin-bottom: 10rpx;
		margin-left: 10rpx;
		margin-right: 10rpx;
		border-radius: 10rpx;
		padding: 20rpx;
		border: 2px solid #C0C0C0;

		background-color: rgba(29, 5, 41, 0.2);
		padding-top: 15rpx;
		padding-bottom: 20rpx;
		box-sizing: border-box;
		// &:active {
		// 	background-color: rgba(206, 31, 84, 0.8);
		// }
	}

	.Basicsred {
		background-color: rgba(206, 31, 84, 0.5);
	}

	.Basicsrblue {
		background-color: rgba(64, 158, 255, 0.5);
	}

	.font {
		margin-top: 20rpx;
	}

	.coloritem {
		position: relative;
		top: -50rpx;
	}

	.colorblock {
		//             min-width: 30rpx;
		// min-height: 30rpx;
		// font-size: 25rpx;
		display: inline-block;
		margin-left: 7rpx;
		// margin-top: 10rpx;
		// width: 130rpx;
		// height: 130rpx;
		border-radius: 10rpx;
		padding: 10rpx;
		box-sizing: border-box;
		overflow: hidden;
		min-width: 50rpx;
		min-height: 50rpx;
		opacity: 0.8;
	}

	.colorblock:nth-child(5n) {
		margin-right: 0rpx;
	}

	#F {
		color: #000000
	}

	.louis-bg-MD {
		// background-color: rgba(0,0,0,0.1);
		display: inline-block;
		padding: 5rpx 10rpx;


	}
</style>
